﻿//-----------------------------------------------------------------------
// <copyright file="UserOperateLogFactory.cs" company="Mulala">
//     Copyright Mulala. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Mulala.Cavan.Domain.MainBoundedContext.LogModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Mulala.Cavan.Domain.MainBoundedContext.SecurityModule;

    public static class UserOperateLogFactory
    {
        public static UserOperateLog CreateUserOperateLog(
                                        UserAccount logOperator,
                                        LogIdentifier.SiteRule operateType,
                                        int scoreChange,
                                        int experienceChange,
                                        int livenessChange,
                                        string description,
                                        DateTime editTime,
                                        string editUser)
        {
            UserOperateLog userOperateLog = new UserOperateLog();
            userOperateLog.Description = description;
            userOperateLog.EditTime = editTime;
            userOperateLog.EditUser = editUser;
            userOperateLog.ExperienceChange = experienceChange;
            userOperateLog.LivenessChange = livenessChange;
            userOperateLog.LogOperator = logOperator;
            userOperateLog.OperateType = operateType;
            userOperateLog.ScoreChange = scoreChange;
            userOperateLog.CreateTime = DateTime.Now;

            return userOperateLog;
        }
    }
}
